package test01;

public class demo03 {
    public static void main(String[] args) {
        int a=50;
        int b=20;
        int c=60;
        int temp;
        if(a>b){
            temp=a;
            a=b;
            b=temp;
        }
        if(b>c){
            temp=b;
            b=c;
            c=temp;
        }
        System.out.println("排序为："+a+" "+b+" "+c);
    }
}
